package com.ysy.logistics.entities.supplier;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysy.common.entities.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/25 14:40
 **/
@Data
@TableName("sup_order_goods")
@Schema(name = "sup_order_goods", description = "采购订单商品类")
public class SupOrderGoods extends BaseEntity {

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "订单id")
    @TableField(value = "order_id")
    private String orderId;

    @Schema(description = "商品id")
    @TableField(value = "goods_id")
    private String goodsId;

    @Schema(description = "商品数量")
    @TableField(value = "goods_num")
    private Integer goodsNum;

    @Schema(description = "商品单价")
    @TableField(value = "goods_price")
    private Integer goodsPrice;

    @Schema(description = "商品总价")
    @TableField(value = "goods_total_price")
    private Integer goodsTotalPrice;


}
